﻿using AutomaticScrewLocking.infrastructure.pojo;
using System;
using System.Data;


namespace AutomaticScrewLocking.domain.dataStorage.repository
{
    public interface ITorqueRepository
    {
        /// <summary>
        /// 查询扭力数据
        /// </summary>
        /// <param name="torque">torque传输对象</param>
        /// <returns></returns>
        DataSet queryTorqueList(TorquePoJo torque);

        /// <summary>
        /// 存储扭力数据
        /// </summary>
        /// <param name="maxTorque">最大扭力</param>
        /// <param name="createTime">创建时间</param>
        /// <returns></returns>
        int saveTorqueData(double maxTorque, DateTime createTime);
    }
}
